Skip to content

Skip final build in DBP fixture test#2861

Open
plajjan wants to merge 1 commit into
mainfrom
speed-dbp-fixture-tests
Open

Skip final build in DBP fixture test#2861
plajjan wants to merge 1 commit into
mainfrom
speed-dbp-fixture-tests

Conversation

@plajjan
Copy link
Copy Markdown
Contributor

@plajjan plajjan commented Jun 3, 2026

The DBP fixture checks that the executable root actor is selected by reading generated main.c. It does not run the linked binary for that subcase, so the final Zig build only adds test time.

This keeps the DBP compiler work and generated-C assertion, but passes --skip-build for that subcase so the test stops compiling and linking a binary it never uses.

The DBP fixture checks that the executable root actor is selected by
reading generated main.c. It does not run the linked binary for that
subcase, so the final Zig build only adds test time.

Keep the DBP compiler work and generated-C assertion, but pass
--skip-build for that subcase so the test stops compiling and linking
a binary it never uses.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 905509fd57

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread compiler/acton/test.hs
removeIfExists (typesDir </> "main.root.c")
sixthLog <- assertOk "dbp keeps executable root actor" =<<
runBuild ["build", "--verbose", "--dbp", "main", "--dbp", "provider", "--color", "never"]
runBuild ["build", "--skip-build", "--verbose", "--dbp", "main", "--dbp", "provider", "--color", "never"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore the DBP root build coverage

Adding --skip-build here means this subcase no longer regenerates main.root.c after the test deletes it above, because skip_build returns before zigBuild, and writeRootC is only called from zigBuild in compiler/acton/Main.hs. This lets the test pass while the DBP executable-root path is unable to produce/link an executable root stub; the main.c assertion only proves the actor body was emitted, not that acton build --dbp main can still build the binary entry point.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant